package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter@Setter
public class SystemDictionary {
    private Long id;

    private String sn;

    private String title;

    private String intro;

    public String getJson(){
        Map<String,Object> map = new HashMap<>();
        map.put("id",this.id);
        map.put("sn",this.sn);
        map.put("title",this.title);
        map.put("intro",this.intro);
        String s = JSON.toJSONString(map);
        return s;
    }

}